#include <stdio.h>

double ball(int n) {
    if (n == 0) {
        return 100; 
    } else {
        double height = ball(n - 1) / 2; 
        return height;
    }
}
double fun(n)
{
	double s= 0;
    double height = 100; 
    int i = 1;
    for (; i <= n; i++) {
        s += height; 
        height /= 2; 
        s += height; 
    }
    return s;
}
int main() {
    int n;
    scanf("%d", &n);
    double s,height;
    height=ball(n);
    s=fun(n);
    printf("%.4f,%.4f\n", height, s);
    return 0;
}
